<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>C++ Web Framework: Controller Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">C++ Web Framework
   &#160;<span id="projectnumber">3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_controller-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Controller Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_controller.html" title="The Controller class is responsable to attend a request from a specific url. You will need to create ...">Controller</a> class is responsable to attend a request from a specific url. You will need to create a derived class from <a class="el" href="class_controller.html" title="The Controller class is responsable to attend a request from a specific url. You will need to create ...">Controller</a> and then, reconstruct the desired method to response a request, after this, you will need mapping the url to the new controller that you created, you need to do it into the ConfigureCppWebServer using the method addUrlController.  
 <a href="class_controller.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="controller_8h_source.html">controller.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Controller:</div>
<div class="dyncontent">
<div class="center"><img src="class_controller__inherit__graph.png" border="0" usemap="#_controller_inherit__map" alt="Inheritance graph"/></div>
<map name="_controller_inherit__map" id="_controller_inherit__map">
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a867c1b386aa6e63d986a01ddaeccea5a"><td class="memItemLeft" align="right" valign="top"><a id="a867c1b386aa6e63d986a01ddaeccea5a"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_controller.html#a867c1b386aa6e63d986a01ddaeccea5a">~Controller</a> ()</td></tr>
<tr class="memdesc:a867c1b386aa6e63d986a01ddaeccea5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a867c1b386aa6e63d986a01ddaeccea5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab98176c753629fff6c8d36bbf28c16b9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_controller.html#ab98176c753629fff6c8d36bbf28c16b9">doDelete</a> (<a class="el" href="class_request.html">Request</a> &amp;req, <a class="el" href="class_response.html">Response</a> &amp;resp) const</td></tr>
<tr class="memdesc:ab98176c753629fff6c8d36bbf28c16b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is an virtual method that can be overloaded to attend the delete request method.  <a href="#ab98176c753629fff6c8d36bbf28c16b9">More...</a><br /></td></tr>
<tr class="separator:ab98176c753629fff6c8d36bbf28c16b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5d2ca4308e70c23d1d2b31f012b3f00"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_controller.html#aa5d2ca4308e70c23d1d2b31f012b3f00">doGet</a> (<a class="el" href="class_request.html">Request</a> &amp;req, <a class="el" href="class_response.html">Response</a> &amp;resp) const</td></tr>
<tr class="memdesc:aa5d2ca4308e70c23d1d2b31f012b3f00"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is an virtual method that can be overloaded to attend the get request method.  <a href="#aa5d2ca4308e70c23d1d2b31f012b3f00">More...</a><br /></td></tr>
<tr class="separator:aa5d2ca4308e70c23d1d2b31f012b3f00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cec4b14d083984b9f7acbdc20a8e474"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_controller.html#a1cec4b14d083984b9f7acbdc20a8e474">doOptions</a> (<a class="el" href="class_request.html">Request</a> &amp;req, <a class="el" href="class_response.html">Response</a> &amp;resp) const</td></tr>
<tr class="memdesc:a1cec4b14d083984b9f7acbdc20a8e474"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is an virtual method that can be overloaded to attend the options request method.  <a href="#a1cec4b14d083984b9f7acbdc20a8e474">More...</a><br /></td></tr>
<tr class="separator:a1cec4b14d083984b9f7acbdc20a8e474"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8de02c2d94545b67c6b2beb8ed28e8a2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_controller.html#a8de02c2d94545b67c6b2beb8ed28e8a2">doPost</a> (<a class="el" href="class_request.html">Request</a> &amp;req, <a class="el" href="class_response.html">Response</a> &amp;resp) const</td></tr>
<tr class="memdesc:a8de02c2d94545b67c6b2beb8ed28e8a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is an virtual method that can be overloaded to attend the post request method.  <a href="#a8de02c2d94545b67c6b2beb8ed28e8a2">More...</a><br /></td></tr>
<tr class="separator:a8de02c2d94545b67c6b2beb8ed28e8a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a444a462c40ee74f016959d1731264135"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_controller.html#a444a462c40ee74f016959d1731264135">doPut</a> (<a class="el" href="class_request.html">Request</a> &amp;req, <a class="el" href="class_response.html">Response</a> &amp;resp) const</td></tr>
<tr class="memdesc:a444a462c40ee74f016959d1731264135"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is an virtual method that can be overloaded to attend the put request method.  <a href="#a444a462c40ee74f016959d1731264135">More...</a><br /></td></tr>
<tr class="separator:a444a462c40ee74f016959d1731264135"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af33788f3aa0b3ee7300ab2f1b2f5f28d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_controller.html#af33788f3aa0b3ee7300ab2f1b2f5f28d">doTrace</a> (<a class="el" href="class_request.html">Request</a> &amp;req, <a class="el" href="class_response.html">Response</a> &amp;resp) const</td></tr>
<tr class="memdesc:af33788f3aa0b3ee7300ab2f1b2f5f28d"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is an virtual method that can be overloaded to attend the trace request method.  <a href="#af33788f3aa0b3ee7300ab2f1b2f5f28d">More...</a><br /></td></tr>
<tr class="separator:af33788f3aa0b3ee7300ab2f1b2f5f28d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_controller.html" title="The Controller class is responsable to attend a request from a specific url. You will need to create ...">Controller</a> class is responsable to attend a request from a specific url. You will need to create a derived class from <a class="el" href="class_controller.html" title="The Controller class is responsable to attend a request from a specific url. You will need to create ...">Controller</a> and then, reconstruct the desired method to response a request, after this, you will need mapping the url to the new controller that you created, you need to do it into the ConfigureCppWebServer using the method addUrlController. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ab98176c753629fff6c8d36bbf28c16b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab98176c753629fff6c8d36bbf28c16b9">&#9670;&nbsp;</a></span>doDelete()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Controller::doDelete </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_request.html">Request</a> &amp;&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_response.html">Response</a> &amp;&#160;</td>
          <td class="paramname"><em>resp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This is an virtual method that can be overloaded to attend the delete request method. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>: This is a reference to the <a class="el" href="class_request.html" title="The Request class holds all information about a http request. ">Request</a>. </td></tr>
    <tr><td class="paramname">resp</td><td>: This is a reference to the <a class="el" href="class_response.html" title="The Response class is responsable to response a Http request. ">Response</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa5d2ca4308e70c23d1d2b31f012b3f00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5d2ca4308e70c23d1d2b31f012b3f00">&#9670;&nbsp;</a></span>doGet()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Controller::doGet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_request.html">Request</a> &amp;&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_response.html">Response</a> &amp;&#160;</td>
          <td class="paramname"><em>resp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This is an virtual method that can be overloaded to attend the get request method. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>: This is a reference to the <a class="el" href="class_request.html" title="The Request class holds all information about a http request. ">Request</a>. </td></tr>
    <tr><td class="paramname">resp</td><td>: This is a reference to the <a class="el" href="class_response.html" title="The Response class is responsable to response a Http request. ">Response</a>. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="class_cpp_web_controller.html#a2555abf02a8e377c4f209675831d1a04">CppWebController</a>.</p>

</div>
</div>
<a id="a1cec4b14d083984b9f7acbdc20a8e474"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1cec4b14d083984b9f7acbdc20a8e474">&#9670;&nbsp;</a></span>doOptions()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Controller::doOptions </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_request.html">Request</a> &amp;&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_response.html">Response</a> &amp;&#160;</td>
          <td class="paramname"><em>resp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This is an virtual method that can be overloaded to attend the options request method. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>: This is a reference to the <a class="el" href="class_request.html" title="The Request class holds all information about a http request. ">Request</a>. </td></tr>
    <tr><td class="paramname">resp</td><td>: This is a reference to the <a class="el" href="class_response.html" title="The Response class is responsable to response a Http request. ">Response</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8de02c2d94545b67c6b2beb8ed28e8a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8de02c2d94545b67c6b2beb8ed28e8a2">&#9670;&nbsp;</a></span>doPost()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Controller::doPost </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_request.html">Request</a> &amp;&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_response.html">Response</a> &amp;&#160;</td>
          <td class="paramname"><em>resp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This is an virtual method that can be overloaded to attend the post request method. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>: This is a reference to the <a class="el" href="class_request.html" title="The Request class holds all information about a http request. ">Request</a>. </td></tr>
    <tr><td class="paramname">resp</td><td>: This is a reference to the <a class="el" href="class_response.html" title="The Response class is responsable to response a Http request. ">Response</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a444a462c40ee74f016959d1731264135"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a444a462c40ee74f016959d1731264135">&#9670;&nbsp;</a></span>doPut()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Controller::doPut </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_request.html">Request</a> &amp;&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_response.html">Response</a> &amp;&#160;</td>
          <td class="paramname"><em>resp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This is an virtual method that can be overloaded to attend the put request method. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>: This is a reference to the <a class="el" href="class_request.html" title="The Request class holds all information about a http request. ">Request</a>. </td></tr>
    <tr><td class="paramname">resp</td><td>: This is a reference to the <a class="el" href="class_response.html" title="The Response class is responsable to response a Http request. ">Response</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af33788f3aa0b3ee7300ab2f1b2f5f28d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af33788f3aa0b3ee7300ab2f1b2f5f28d">&#9670;&nbsp;</a></span>doTrace()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Controller::doTrace </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_request.html">Request</a> &amp;&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_response.html">Response</a> &amp;&#160;</td>
          <td class="paramname"><em>resp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This is an virtual method that can be overloaded to attend the trace request method. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>: This is a reference to the <a class="el" href="class_request.html" title="The Request class holds all information about a http request. ">Request</a>. </td></tr>
    <tr><td class="paramname">resp</td><td>: This is a reference to the <a class="el" href="class_response.html" title="The Response class is responsable to response a Http request. ">Response</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/herik/CPPWebFramework/CPPWebFramework/cwf/<a class="el" href="controller_8h_source.html">controller.h</a></li>
<li>/home/herik/CPPWebFramework/CPPWebFramework/cwf/controller.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon May 28 2018 11:09:08 for C++ Web Framework by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
